package com.ychen.ruijee.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ychen.ruijee.bean.AddressBook;

import java.util.List;

/**
 * @author ychen@gotop.cn
 * @date 2024-06-07 15:58
 */
public interface AddressBookService extends IService<AddressBook> {

    /**
     * 根据当前登录的 用户id 去查询 该用户下的所有地址信息
     * @param addressBook
     * @return
     */
    List<AddressBook> listAddressBook(AddressBook addressBook);

    /**
     * 新增 收货地址
     * @param addressBook
     * @return
     */
    boolean saveAddressBook(AddressBook addressBook);

    /**
     * 收货信息 修改
     * @param addressBook
     * @return
     */
    boolean updateAddressBook(AddressBook addressBook);
}
